import request from '@/utils/request'

// 设备点检相关接口 ========================
// 查询设备点检列表（新增）
export function listDailycheck(params) {
  return request({
    url: '/dailycheck/list', // 根据实际接口路径修改
    method: 'get',
    params
  })
}

// 设备基础信息接口（原内容保留）=============
// 查询设备清单列表
export function listEquipment(query) {
  return request({
    url: '/equipment/equipment/list',
    method: 'get',
    params: query
  })
}

// 查询设备清单详细
export function getEquipment(equipmentNo) {
  return request({
    url: '/equipment/equipment/' + equipmentNo,
    method: 'get'
  })
}

// 新增设备清单
export function addEquipment(data) {
  return request({
    url: '/equipment/equipment',
    method: 'post',
    data: data
  })
}

// 修改设备清单
export function updateEquipment(data) {
  return request({
    url: '/equipment/equipment',
    method: 'put',
    data: data
  })
}

// 删除设备清单
export function delEquipment(equipmentNo) {
  return request({
    url: '/equipment/equipment/' + equipmentNo,
    method: 'delete'
  })
}